home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / graphics / jpegtool / jpegtool.doc < prev    next >
Text File  |  1999-04-28  |  6KB  |  169 lines

  1.                       JpegTool
  2.         © 1999 by Stephan Rupprecht
  3.             All rights reserved.
  4.  
  5.  
  6. COPYRIGHT AND DISCLAIMER
  7.  JpegTool is copyrighted 1999 by Stephan Rupprecht. All rights
  8.  reserved. This program is freeware, so no financial donations
  9.  required. Redistribution allowed if the package is left unchanged.
  10.  The author is not responsible for any damage caused by the use
  11.  or misuse of this documentation and/or the program(s) it describes.
  12.  
  13.  
  14. REQUIREMENTS
  15.  Any Amiga® (compatible) computer with at least OS3 and '020+ cpu.
  16.  jpeg.library v2+ by Paul Huxham (util/libs/jpeglibrary*.lha or
  17.   http://mafeking.scouts.org.au/~paulh).
  18.  picture.datatype v43 and datatypes.library v45 (optional, see later).
  19.  
  20.  The gui program by Nils Goers requires:
  21.   triton.library, tritonrexx.library, rexxsupport.library
  22.  
  23.  
  24. DESCRIPTION
  25.  JpegTool allows you to convert any image that is recognized by 
  26.  datatypes into a jpeg image and vice versa.
  27.  
  28.  Features (mainly provided by jpeg.library)
  29.   · can create thumbnails from jpegs.
  30.   · allows to create progressive images (jpeglib v5).
  31.   · provides block smoothing for decompression (jpeglib v5).
  32.   · dct method (jpeglib v4) as well as quality and smoothing
  33.     factor can be changed.
  34.   · optionally creates grayscale images.
  35.  
  36.  
  37. INSTALLATION
  38.  Simply copy JpegTool to where-ever-you-want :)
  39.  
  40.  
  41. USAGE
  42.  You can start JpegTool only from shell, since it's a DOS command
  43.  (except for the possibility to start it from Workbench through
  44.  the menu item 'Execute Command...'). The following options are
  45.  provided:
  46.  
  47.     FROM/M/A,TO/A,DESTDATATYPE=DATATYPE=DTN/K,Q=QUALITY/N/K,
  48.     S=SMOOTHING/N/K,DCT=DCTMETHOD/K,BS=BLOCKSMOOTHING/S,
  49.     P=PROGRESSIVE/S,SN=SCALENUM/N/K,SD=SCALEDENOM/N/K,
  50.     GS=GRAYSCALE/S,FORCE/S,ALL/S,QUIET/S
  51.  
  52.  FROM/M/A: specifies the image(s) to convert, patterns will be accepted.
  53.  
  54.  TO/A: name of the new image(s). The specified filename is not necessarily 
  55.   just a simple identifier representing exactly one disk object. Instead, 
  56.   it is a template which may contain variables/placeholders which will 
  57.   be replaced by their actual values. Placeholders recognized are:
  58.   
  59.    %n   name of the source file without suffix. You can shorten the
  60.         filename by providing the maximum number of characters allowed
  61.         between % and n (eg. %5n).
  62.    %nu  Each time an image is converted an internal counter will be
  63.        increased. %nu holds the current value of this counter.
  64.    %w   width of the image.
  65.    %h   height ...
  66.    %d   depth ...
  67.    %sz  shortcut for %wx%hx%d.
  68.    %s   suffix _without_ leading point. If you convert an image to jpeg, the 
  69.         suffix will be 'jpg' otherwise the name of the datatype specified
  70.         via DATATYPE will be taken as suffix (exception: 'picture' will be
  71.         turned into 'ilbm').
  72.         
  73.    example: this will create thumbnails from all jpg files in the current
  74.     directory. jpegtool #?.jpg %20n_thumb.%s sd=8
  75.    
  76.   NOTE: Source and destination MUST NOT be the same file !
  77.  
  78.  DESTDATATYPE=DATATYPE=DTN/K: tells the program to create a datatypes
  79.   object from a jpeg stream. To create an ilbm picture specify
  80.   DTN=picture (no .datatype ending!). This option requires picture
  81.   datatype v43 and datatypes.library v45! And, of course, the
  82.   specified subclass of picture    dt must be v43 compatible and provide
  83.   an encoder.
  84.  
  85.  Q=QUALITY/N/K: quality of the jpeg stream to create (1%..100%).
  86.   default: 75
  87.  
  88.  S=SMOOTHING/N/K: smoothing factor of the jpeg stream to create
  89.   (0%..100%). default: 0 (= no smoothing)
  90.  
  91.  DCT=DCTMETHOD/K: allows to specify the dct method used for
  92.   de-/encoding. The following keywords are recognized:
  93.     ISLOW: integer, slow, more accurate (default).
  94.     IFAST: integer, fast, less accurate.
  95.     FLOAT: float, fast on fast machines, most accurate.
  96.  
  97.  BS=BLOCKSMOOTHING/S: do block smoothing when decompressing.
  98.   default: off
  99.  
  100.  P=PROGRESSIVE/S: create progressive jpeg.
  101.   default: off
  102.  
  103.  SN=SCALENUM/N/K: scaling numerator when decompressing a jpeg image.
  104.   The jpeg code only supports a value of 1 (default) currently.
  105.  
  106.  SD=SCALEDENOM/N/K: scaling denominator when decompressing a jpeg
  107.   image. Denominators supported are 1 (default), 2, 4 and 8. Eg. if
  108.   you want to have an image that is halve of the size of the original 
  109.   one specify SD=2.
  110.  
  111.  GS=GRAYSCALE/S: create grayscale image. default: off.  
  112.  
  113.  FORCE/S: overwrite existing files.
  114.  
  115.  ALL/S: convert subdirectories, too. A new directory in the destination
  116.   drawer _won't_ be created!
  117.  
  118.  QUIET/S: suppresses any message except error messages.
  119.   default: off
  120.  
  121.  
  122. PROBLEMS
  123.  The ffp version of jpeg.library will probably cause your computer to
  124.  crash, so better use the standard one or the fpu version (if possible).
  125.  The latest release of jpeg.library no longer includes an ffp version.
  126.  
  127.  
  128. HISTORY
  129.  1.0  first public release
  130.  1.1  fixed a few non-serious bugs. added grayscale option. creates
  131.       an 8bit image from a grayscale jpeg, now (before truecolor).
  132.       fixed p96 picturedt problems.
  133.  1.2  Wrong aspect ratio was saved when creating a datatypes object.
  134.       Improved FROM and TO option, now multiple files / whole directories
  135.       can be converted at once. Included JpegToolGUI by Nils Goers.
  136.  1.3  added FORCE/S option. uses raw mode for input now (when asking you
  137.       for permission to overwrite an existing file) to avoid that the
  138.       input appears in cons' history. when overwriting an existing file
  139.       the filesize didn't change in case that the file was larger before.
  140.       added filesize to the output. Nils updated his gui program.
  141.  1.4  new ALL/S option. to convert a directory you don't need to give a
  142.       pattern anymore (ie. myimages/#? -> myimages). no longer assumes
  143.       that anything behind the first point of the source name is a suffix
  144.       (see %n placeholder).
  145.  
  146.  
  147. FUTURE
  148.  bugfixes ;)
  149.  your suggestions
  150.  
  151.  
  152. SPECIAL THANKS GO TO (in order of appearance:)
  153.  Paul Huxham for jpeg.library.
  154.  Olaf Barthel for his help.
  155.  Nils Goers <n.goers@goers.art-line.de> for the gui program.
  156.  
  157.  
  158. AUTHOR
  159.  Please send bug reports and ideas to
  160.  
  161.      Stephan Rupprecht
  162.      Apfeldweg 1
  163.      D44359 Dortmund
  164.      Germany
  165.  
  166.  Send emails to
  167.  
  168.      stephan.rupprecht@gmx.de
  169.